<?php
if(!empty($_POST['user'])){
	include('mysql.class.php');
	$mysql = new mysql();
	$mysql->autoExecute('info',$_POST);
	header('location:add.php');
}
?>
<!DOCTYPE html> 
<html lang="en"> 
<head> 
<meta charset="utf-8"> 
<title>添加账号信息</title> 
<link rel="stylesheet" href="bootstrap.min.css">
<style>
form{ margin:0 auto;text-align:center;}
</style>
</head>
<body>
<br/>
<center><a href="index.php"><input class="btn btn-success" value="列表"></a></center><br/><form class="well" method="post" action="add.php">
  名称:<input type="text" name="name" class="span3" placeholder="请输入名称..."><br/>
  网址:<input type="text" name="site" class="span3" placeholder="请输入网址..."><br/>
  帐户:<input type="text" name="user" class="span3" placeholder="请输入帐户..."><br/>
  密码:<input type="text" name="pwd" class="span3" placeholder="请输入密码..."><br/>
  备注:<input type="text" name="remark" class="span3" placeholder="请输入备注..."><br/>
   <button type="submit" class="btn btn-danger">提交</button>
</form>

</body>
</html>